<?php
namespace App\Services;

use App\Models\PlatSetting;

class SettingService
{
    public static function get($key) : array
    {
        $setting = PlatSetting::find($key);
        return $setting->value;
    }

    public static function set($key, $array)
    {
        PlatSetting::find($key)->update($array);
    }
}
